package org.wk;

class Animal {
    public void makeSound() {
        System.out.println("Some sound");
    }
}

class Dog extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Bark");
    }

    public void aa(int a) {
        System.out.println("Bark");
    }
}

public class Test {
    public static void main(String[] args) {
        Animal myAnimal = new Dog(); // 多态性
        myAnimal.makeSound(); // 输出 "Bark"
    }
}
